<template>
  <a-select v-model="value" v-bind="$attrs"> </a-select>
</template>

<script>
export default {
  name: 'search-select',
  inheritAttrs: false,
  data() {
    let baseData = this.$attrs.baseData || []
    return {
      value: undefined,
      baseData: baseData
    }
  },
  mounted() {
    if (this.$attrs.defaultValue) {
      this.$emit('change', this.$attrs.defaultValue)
    }
  }
}
</script>

<style></style>
